package converter

class ProjectRender {

	DependencyRender dr = new DependencyRender()


//	private void getRepositoriesForModule(module, repoSet) {
//		module.repositories.repository.each {
//		  repoSet.add("\t\tmavenRepo urls: [\"${it.url}\"]")
//		}
//	}

	String getRepositories(File effectivePom) {
		return """
repositories {
  maven {
   url 'http://dbdldbiapv02.us.dnb.com:18080/artifactory/repo/'
  }
}
"""

	}

	String renderProject(File effectivePom) {
		String repositories = getRepositories(effectivePom)
		String dependencies = dr.renderDependencies(effectivePom)
		return """
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'

$repositories
$dependencies
"""
	}
}
